#
# Copyright 2009, Jeffrey Palm.
#

#
# Finds the currently playing track in itunes then sends it along with
# our identity.  Examples:
#
#  % resumep3
#  % resumep3 jeff
#
# For me, these are equal
#

require 'main'
require 'command_line'
require 'parse_args_impl'
require 'prints_help_impl'
require 'desktop_composed_common'

# The main class that together all the different parts:
#
#  - Takes care of storing/retrieving the shared key that is used to
#    communicate with other people.
#  - It manages starting/stopping itunes.
#  - Starts up the server that gets the request from the phone on the
#    local network.
#
class Resumep3 < Main

  def initialize
    super CommandLine.new(DesktopComposedCommon.new(Config.default),
                          ParseArgs.new)
  end

end
